export default {
  addCart({ commit, state }, info) {
    const result = state.cartList.find(item => item.iid === info.iid)

    if (result !== undefined) {
      commit('ADD_CART', result)
    } else {
      commit('ADD_COUNT', info)
    }
  }
}
